package autocode

import (
	"github.com/flipped-aurora/gin-vue-admin/server/api/v1"
	"github.com/flipped-aurora/gin-vue-admin/server/middleware"
	"github.com/gin-gonic/gin"
)

type ProgramJoinInfoRouter struct {
}

// InitProgramJoinInfoRouter 初始化 ProgramJoinInfo 路由信息
func (s *ProgramJoinInfoRouter) InitProgramJoinInfoRouter(Router *gin.RouterGroup) {
	programJoinInfoRouter := Router.Group("programJoinInfo").Use(middleware.OperationRecord())
	programJoinInfoRouterWithoutRecord := Router.Group("programJoinInfo")
	var programJoinInfoApi = v1.ApiGroupApp.AutoCodeApiGroup.ProgramJoinInfoApi
	{
		programJoinInfoRouter.POST("createProgramJoinInfo", programJoinInfoApi.CreateProgramJoinInfo)   // 新建ProgramJoinInfo
		programJoinInfoRouter.DELETE("deleteProgramJoinInfo", programJoinInfoApi.DeleteProgramJoinInfo) // 删除ProgramJoinInfo
		programJoinInfoRouter.DELETE("deleteProgramJoinInfoByIds", programJoinInfoApi.DeleteProgramJoinInfoByIds) // 批量删除ProgramJoinInfo
		programJoinInfoRouter.PUT("updateProgramJoinInfo", programJoinInfoApi.UpdateProgramJoinInfo)    // 更新ProgramJoinInfo
	}
	{
		programJoinInfoRouterWithoutRecord.GET("findProgramJoinInfo", programJoinInfoApi.FindProgramJoinInfo)        // 根据ID获取ProgramJoinInfo
		programJoinInfoRouterWithoutRecord.GET("getProgramJoinInfoList", programJoinInfoApi.GetProgramJoinInfoList)  // 获取ProgramJoinInfo列表
	}
}
